//
//  HRZAuthorService.h
//  EMarket
//
//  Created by 物联速通信息技术有限公司 on 2018/5/23.
//  Copyright © 2018 好日子. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HRZBaseService.h"

@class HRZUserInfo;
@class HRZAttestationModel;
@class HRZAddressUpdateModel;

@interface HRZAuthorService : HRZBaseService


/**
 手机号注册

 @param phoneNum 手机号
 @param verityNum 验证码
 @param password 密码
 @param success 成功
 @param failure 失败
 */
+ (void)userRegisterWithPhoneNum:(NSString *)phoneNum
                       verityNum:(NSString *)verityNum
                        password:(NSString *)password
                         success:(void (^)(NSString *suc))success
                         failure:(void (^)(NSString *err))failure;




/**
 用户登录

 @param account 账号
 @param password 密码
 @param phoneId 手机ID
 @param success 成功
 @param failure 失败
 */
+ (void)userLoginWithUserAccount:(NSString *)account
                        password:(NSString *)password
                         phoneId:(NSString *)phoneId
                         success:(void (^)(HRZUserInfo *userInfo))success
                         failure:(void (^)(NSString *err))failure;


/**
 用户退出

 @param userInfo 用户信息
 @param success 退出成功
 @param failure 退出失败
 */
+ (void)userLogOutWithUser:(HRZUserInfo*)userInfo
                   success:(void (^)(NSString *suc))success
                   failure:(void (^)(NSString *err))failure;


/**
 门店认证

 @param model 门店认证model
 @param success 成功
 @param failure 失败
 */
+ (void)userShopAttestationWith:(HRZAttestationModel *)model
                        success:(void (^)(NSString *suc))success
                        failure:(void (^)(NSString *err))failure;


/**
 门店添加地址

 @param address 地址model
 @param success 成功
 @param failure 失败
 */
+ (void)userShopAddressWith:(HRZAddressUpdateModel *)address
                    success:(void (^)(NSString *suc))success
                    failure:(void (^)(NSString *err))failure;


/**
 门店地址查询

 @param shopId 门店ID
 @param success 成功
 @param failure 失败
 */
+ (void)searchShopAddressByShopId:(NSInteger)shopId
                          success:(void (^)(NSString *suc))success
                          failure:(void (^)(NSString *err))failure;


/**
 图片上传

 @param image 图片
 @param success 成功
 @param failure 失败
 */
+ (void)userUpdloadImage:(UIImage *)image
                 success:(void (^)(NSString *suc))success
                 failure:(void (^)(NSString *err))failure;

@end
